<?php

namespace Acme\TaskBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Entity
* @ORM\Table(name="task")
*/
class Task
{
	
	/**
	* @ORM\Id
	* @ORM\Column(type="integer")
	* @ORM\GeneratedValue(strategy="AUTO")
	*/
	protected $id;
	
	/**
	* @ORM\Column(type="text")
	*/
	protected $task;
	
	/**
	* @ORM\Column(type="date")
	*/
	protected $dueDate;
	
	protected $datetxt;
	

	
	public function getId()
	{
		return $this->id;
	}
	
	public function getTask()
	{
		return $this->task;
	}
	public function setTask($task)
	{
		$this->task = $task;
	}

	public function getDueDate()
	{
		return $this->dueDate;
	}

	public function setDueDate(\DateTime $dueDate = null)
	{
		$this->dueDate = $dueDate;
	}
		public function getdatetxt()
	{
		$date = $this->dueDate;
		return  $date->format('Y-m-d H:i:s');
	}
	
	public function setdatetxt($date)
	{
		$this->datetxt = $date;
	}
}